<div class="newly" style="margin-top:0px;">
    <div class="newly_tit">
        <div class="com_tit"><?php echo $firstTitle . "<span>" . $secondTitle . "</span>"?></div>
        <h2>ieasy.tv 每日娱乐圈风向标<br>更多明星资讯，请关注官方微博 Easy_Magazine</h2>
    </div>
    <!--列表开始-->
    <?php
                      $url = "http://" . $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . "/";
    foreach ($newsArray as $row_array):
        ?>
        <div class="news_list">
            <div class="get_time">发布时间
                <?php
                                        $image = $row_array["snapshot_big"];
                if ($image == null || $image == "")
                    $image = sfConfig::get("app_no_image");
                echo utility::DateDiff(date("Y-m-d H:i:s"), $row_array["publish_time"]);
                $relatedNews = DbBase::getRelateNews($row_array["news_id"], 1000);
                $display = "none";
                if (count($relatedNews) > 0)
                    $display = "";
                //                        if($row_array["currentHour"] < 24)
                //                            echo $row_array["currentHour"]."小时前发布";
                //                        else
                //                            echo floor($row_array["currentHour"]/24)."天前发布";
                ?>
            </div>
            <div class="news_tit1">
                <span><?php echo $row_array["name"]; ?></span>&nbsp;<?php echo $row_array["short_comment"]; ?></div>
            <div class="news_content">
                <div class="news_img"><?php echo link_to("<img src=\"" . $image . "\" class=\"headnews_List_img\" >", "news/detail?id=" . $row_array["news_id"], "target='_blank'") ?></div>
                <div class="news_text">
                    <h3><?php echo link_to($row_array["title"], "news/detail?id=" . $row_array["news_id"] . "&page=1", "target='_blank'"); ?></h3>

                    <div class="news_word"><?php echo $row_array["brief"]; ?></div>
                    <p class="more"><?php echo link_to("详细>>", "news/detail?id=" . $row_array["news_id"], array("target" => "_blank")) ?></p>
                </div>
            </div>
            <div class="news_ico"><?php echo link_to("<img src='/images/04.gif' />", "http://www.kaixin001.com/repaste/share.php?rtitle=" . urlencode($row_array["Title"]) . "&rurl=" . $url . "news/detail?id=" . $row_array["news_id"] . "&rcontent=" . utility::getNoHtmlStr($row_array["brief"], 0, 100), "title='转贴到开心网' target='_blank'");?><?php echo link_to("<img src='/images/05.gif' />", "http://share.renren.com/share/buttonshare.do?title=" . urlencode($row_array["Title"]) . "&link=" . $url . "news/detail?id=" . $row_array["news_id"], "title='转贴到人人网' target='_blank'");?><?php echo link_to("<img src='/images/07.gif' />", "http://v.t.sina.com.cn/share/share.php?title=" . urlencode($row_array["Title"]) . "&url=" . $url . "news/detail?id=" . $row_array["news_id"] . "&rcontent=" . utility::getNoHtmlStr($row_array["brief"], 0, 100), "title='转贴到新浪微博' target='_blank'");?><?php echo link_to("<img src='/images/ico_dou.png' />", "http://www.douban.com/recommend/?title=" . urlencode($row_array["Title"]) . "&url=" . $url . "news/detail?id=" . $row_array["news_id"], "title='转贴到豆瓣网' target='_blank'");?><?php echo link_to("<img src='/images/souhu.jpg' />", "http://t.sohu.com/third/post.jsp?content=utf-8&title=" . urlencode($row_array["Title"]) . utility::getNoHtmlStr($row_array["brief"], 0, 100) . "&url=" . $url . "news/detail?id=" . $row_array["news_id"], "title='转贴到搜狐网' target='_blank'");?>
                <img src="/images/08.gif"/></div>
            <div class="news_about" style="display:<?php echo $display; ?>">
                相关链接：<?php echo link_to($relatedNews[0]["title"], "news/detail?id=" . $relatedNews[0]["news_id"], "target=\"_blank\"") ?></div>
        </div>
        <!--列表结束-->
        <?php endforeach;
    if ($displayPageNavigator != null && $totalPageNumber > 1)
        echo utility::getPageNavigator($currentPageNumber, $totalPageNumber, 10, "pageNumber", "", $pageUrl);
    ?>
</div>